package neoe.jbw.data;

import java.lang.reflect.Field;
import java.util.HashMap;

import neoe.jbw.Utils;

public class Order {
	public static final int Die = 0;
	public static final int Stop = 1;
	public static final int Guard = 2;
	public static final int PlayerGuard = 3;
	public static final int TurretGuard = 4;
	public static final int BunkerGuard = 5;
	public static final int Move = 6;
	public static final int ReaverStop = 7;
	public static final int Attack1 = 8;
	public static final int Attack2 = 9;
	public static final int AttackUnit = 10;
	public static final int AttackFixedRange = 11;
	public static final int AttackTile = 12;
	public static final int Hover = 13;
	public static final int AttackMove = 14;
	public static final int InfestMine1 = 15;
	public static final int Nothing1 = 16;
	public static final int Powerup1 = 17;
	public static final int TowerGuard = 18;
	public static final int TowerAttack = 19;
	public static final int VultureMine = 20;
	public static final int StayinRange = 21;
	public static final int TurretAttack = 22;
	public static final int Nothing2 = 23;
	public static final int Nothing3 = 24;
	public static final int DroneStartBuild = 25;
	public static final int DroneBuild = 26;
	public static final int InfestMine2 = 27;
	public static final int InfestMine3 = 28;
	public static final int InfestMine4 = 29;
	public static final int BuildTerran = 30;
	public static final int BuildProtoss1 = 31;
	public static final int BuildProtoss2 = 32;
	public static final int ConstructingBuilding = 33;
	public static final int Repair1 = 34;
	public static final int Repair2 = 35;
	public static final int PlaceAddon = 36;
	public static final int BuildAddon = 37;
	public static final int Train = 38;
	public static final int RallyPoint1 = 39;
	public static final int RallyPoint2 = 40;
	public static final int ZergBirth = 41;
	public static final int Morph1 = 42;
	public static final int Morph2 = 43;
	public static final int BuildSelf1 = 44;
	public static final int ZergBuildSelf = 45;
	public static final int Build5 = 46;
	public static final int Enternyduscanal = 47;
	public static final int BuildSelf2 = 48;
	public static final int Follow = 49;
	public static final int Carrier = 50;
	public static final int CarrierIgnore1 = 51;
	public static final int CarrierStop = 52;
	public static final int CarrierAttack1 = 53;
	public static final int CarrierAttack2 = 54;
	public static final int CarrierIgnore2 = 55;
	public static final int CarrierFight = 56;
	public static final int HoldPosition1 = 57;
	public static final int Reaver = 58;
	public static final int ReaverAttack1 = 59;
	public static final int ReaverAttack2 = 60;
	public static final int ReaverFight = 61;
	public static final int ReaverHold = 62;
	public static final int TrainFighter = 63;
	public static final int StrafeUnit1 = 64;
	public static final int StrafeUnit2 = 65;
	public static final int RechargeShields1 = 66;
	public static final int Rechargeshields2 = 67;
	public static final int ShieldBattery = 68;
	public static final int Return = 69;
	public static final int DroneLand = 70;
	public static final int BuildingLand = 71;
	public static final int BuildingLiftoff = 72;
	public static final int DroneLiftoff = 73;
	public static final int Liftoff = 74;
	public static final int ResearchTech = 75;
	public static final int Upgrade = 76;
	public static final int Larva = 77;
	public static final int SpawningLarva = 78;
	public static final int Harvest1 = 79;
	public static final int Harvest2 = 80;
	public static final int MoveToGas = 81;
	public static final int WaitForGas = 82;
	public static final int HarvestGas = 83;
	public static final int ReturnGas = 84;
	public static final int MoveToMinerals = 85;
	public static final int WaitForMinerals = 86;
	public static final int MiningMinerals = 87;
	public static final int Harvest3 = 88;
	public static final int Harvest4 = 89;
	public static final int ReturnMinerals = 90;
	public static final int Harvest5 = 91;
	public static final int EnterTransport = 92;
	public static final int Pickup1 = 93;
	public static final int Pickup2 = 94;
	public static final int Pickup3 = 95;
	public static final int Pickup4 = 96;
	public static final int Powerup2 = 97;
	public static final int SiegeMode = 98;
	public static final int TankMode = 99;
	public static final int WatchTarget = 100;
	public static final int InitCreepGrowth = 101;
	public static final int SpreadCreep = 102;
	public static final int StoppingCreepGrowth = 103;
	public static final int GuardianAspect = 104;
	public static final int WarpingArchon = 105;
	public static final int CompletingArchonsummon = 106;
	public static final int HoldPosition2 = 107;
	public static final int HoldPosition3 = 108;
	public static final int Cloak = 109;
	public static final int Decloak = 110;
	public static final int Unload = 111;
	public static final int MoveUnload = 112;
	public static final int FireYamatoGun1 = 113;
	public static final int FireYamatoGun2 = 114;
	public static final int MagnaPulse = 115;
	public static final int Burrow = 116;
	public static final int Burrowed = 117;
	public static final int Unburrow = 118;
	public static final int DarkSwarm = 119;
	public static final int CastParasite = 120;
	public static final int SummonBroodlings = 121;
	public static final int EmpShockwave = 122;
	public static final int NukeWait = 123;
	public static final int NukeTrain = 124;
	public static final int NukeLaunch = 125;
	public static final int NukePaint = 126;
	public static final int NukeUnit = 127;
	public static final int NukeGround = 128;
	public static final int NukeTrack = 129;
	public static final int InitArbiter = 130;
	public static final int CloakNearbyUnits = 131;
	public static final int PlaceMine = 132;
	public static final int Rightclickaction = 133;
	public static final int SapUnit = 134;
	public static final int SapLocation = 135;
	public static final int HoldPosition4 = 136;
	public static final int Teleport = 137;
	public static final int TeleporttoLocation = 138;
	public static final int PlaceScanner = 139;
	public static final int Scanner = 140;
	public static final int DefensiveMatrix = 141;
	public static final int PsiStorm = 142;
	public static final int Irradiate = 143;
	public static final int Plague = 144;
	public static final int Consume = 145;
	public static final int Ensnare = 146;
	public static final int StasisField = 147;
	public static final int Hallucination1 = 148;
	public static final int Hallucination2 = 149;
	public static final int ResetCollision1 = 150;
	public static final int ResetCollision2 = 151;
	public static final int Patrol = 152;
	public static final int CTFCOPInit = 153;
	public static final int CTFCOP1 = 154;
	public static final int CTFCOP2 = 155;
	public static final int ComputerAI = 156;
	public static final int AtkMoveEP = 157;
	public static final int HarassMove = 158;
	public static final int AIPatrol = 159;
	public static final int GuardPost = 160;
	public static final int RescuePassive = 161;
	public static final int Neutral = 162;
	public static final int ComputerReturn = 163;
	public static final int InitPsiProvider = 164;
	public static final int SelfDestrucing = 165;
	public static final int Critter = 166;
	public static final int HiddenGun = 167;
	public static final int OpenDoor = 168;
	public static final int CloseDoor = 169;
	public static final int HideTrap = 170;
	public static final int RevealTrap = 171;
	public static final int Enabledoodad = 172;
	public static final int Disabledoodad = 173;
	public static final int Warpin = 174;
	public static final int Medic = 175;
	public static final int MedicHeal1 = 176;
	public static final int HealMove = 177;
	public static final int MedicHoldPosition = 178;
	public static final int MedicHeal2 = 179;
	public static final int Restoration = 180;
	public static final int CastDisruptionWeb = 181;
	public static final int CastMindControl = 182;
	public static final int WarpingDarkArchon = 183;
	public static final int CastFeedback = 184;
	public static final int CastOpticalFlare = 185;
	public static final int CastMaelstrom = 186;
	public static final int JunkYardDog = 187;
	public static final int Fatal = 188;
	public static final int None = 189;
	public static final int Unknown = 190;
	private static HashMap<Integer, String> m;

	public static String getName(int v) {
		if (m == null) {
			try {
				m = new HashMap<Integer, String>();
				Field[] fs = Order.class.getDeclaredFields();
				for (Field f : fs) {
					if (f.getType()!=int.class)continue;
					int w = f.getInt(null);
					m.put(w, f.getName());
				}
			} catch (Exception e) {
				Utils.printException(e);
			}
		}
		return m.get(v);
	}
}
